package com.guang.springbootselfmvc.exception;

public class ServiceException extends Exception {
    private Integer errCode;
    private String errMsg;

    public ServiceException(Integer errCode, String errMsg) {
        super(errMsg);
        this.errCode = errCode;
        this.errMsg = errMsg;
    }

    public ServiceException(Integer errCode, String errMsg, Throwable t) {
        super(errMsg, t);
        this.errCode = errCode;
        this.errMsg = errMsg;
    }

    public Integer getErrCode() {
        return this.errCode;
    }

    public String getErrMsg() {
        return this.errMsg;
    }
}